﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Web.Mvc;
namespace GPMS.Model
{
    [MetadataType(typeof(SpecialtyMetaData))]
    public partial class Specialty
    {

        public Specialty()
        {
            this.IsDeleted = false;
            this.CreateDate = DateTime.Now;
        }
        
        public class SpecialtyMetaData
        {
            public object SpecialtyID { get; set; }

            [ScaffoldColumn(false)]
            [DisplayName("创建时间")]
            public object CreateDate { get; set; }

            [Required(ErrorMessage = "你必须输入一个名称")]
            [DisplayName("专业名称")]
            [RemoteCustom("Specialty", "Verify",ErrorMessage="唯一的")]
            public object SpecialtyName { get; set; }

            [DisplayName("描述")]
            public object Description { get; set; }

            [ScaffoldColumn(false)]
            public object IsDeleted { get; set; }
        }
    }
}